	<form method="post" name="frm_SelCity" action="javascript:SelSikucyoson('0')">
		<p class="searchAttTxt01">※10ヵ所まで選択できます。</p>
			<ul id="tab">
			{* 都道府県毎にループ *}
			{foreach from=$Mapping item=v name="prefLoop"}
				{if $smarty.foreach.prefLoop.iteration == 1}
					<li class="select" style="cursor: pointer">
				{else}
					<li style="cursor: pointer">
				{/if}
					<span>{$v.TODOUFUKEN_NAME}</span>
				</li>
			{/foreach}
			</ul>

			{* 都道府県毎にループ *}
			{foreach from=$Mapping item=v name="prefLoop"}
				{if $smarty.foreach.prefLoop.iteration == 1}
				<div class="content_wrap">
				{else}
				<div class="content_wrap disnon">
				{/if}
				<!-- 政令指定都市 -->
				{foreach from=$v.SITEITOSI_DATA item=sitei name="siteiLoop"}
					<h3>{$sitei.SITEITOSI_NAME}</h3>
					{assign var="cntS" value=$sitei.SITEI_SIKU_DATA|@count}
					{assign var="cnt" value=$v.SHIKUCHOUSON_DATA|@count}
					{foreach from=$sitei.SITEI_SIKU_DATA item=sitei_siku name="siteiSikuLoop"}
						{if $smarty.foreach.siteiSikuLoop.iteration % 3 == 1}
							{if $smarty.foreach.siteiSikuLoop.iteration+3 > $cntS && $cnt == 0}
							<ul class="checkBoxList last">
							{else}
							<ul class="checkBoxList">
							{/if}
						{/if}
							<li>
								<label>
								<input name="CityCd[]" type="checkbox" id="selectCity{$sitei_siku.SHIKUCHOUSON_CD}" value="{$sitei_siku.SHIKUCHOUSON_CD}"
									{foreach from=$research_data.ReCityCd key="key" item="resiteicd" name="loopName"}
										{if $resiteicd == $sitei_siku.SHIKUCHOUSON_CD}checked{/if}
									{/foreach} />
								{$sitei_siku.SHIKUCHOUSON}
								</label>
							</li>
						{if $smarty.foreach.siteiSikuLoop.iteration % 3 == 0 || $smarty.foreach.siteiSikuLoop.last}
							</ul>
						{/if}
					{/foreach}
				{/foreach}
				
				<!-- /政令指定都市 -->
				<!-- innerBlock02 -->
				{assign var="cnt" value=$v.SHIKUCHOUSON_DATA|@count}
				{if $cnt != 0 }
					{if $v.SITEITOSI_DATA|@count > 0}
						<h3>市部</h3>
					{/if}
					{foreach from=$v.SHIKUCHOUSON_DATA item=shikuchouson name="sikuLoop"}
						{if $smarty.foreach.sikuLoop.iteration % 3 == 1}
							{if $smarty.foreach.sikuLoop.iteration+3 <= $cnt}
							<ul class="checkBoxList">
							{else}
							<ul class="checkBoxList last">
							{/if}
						{/if}
						<li>
							<label>
							<input name="CityCd[]" type="checkbox" id="selectCity{$shikuchouson.SHIKUCHOUSON_CD}" value="{$shikuchouson.SHIKUCHOUSON_CD}"
									{foreach from=$research_data.ReCityCd key="key" item="resiteicd" name="loopName"}
										{if $resiteicd == $sitei_siku.SHIKUCHOUSON_CD}checked{/if}
									{/foreach} />
							{$shikuchouson.SHIKUCHOUSON}
							</label>
						</li>
					{if $smarty.foreach.sikuLoop.iteration % 3 == 0 || $smarty.foreach.sikuLoop.last}
						</ul>
					{/if}
					{/foreach}
				{/if}
			</div>
			{/foreach}

			<!-- searchBtnBlock02_easy -->
			<div id="searchBtnBlock02_easy">
				<div class="btnBlock">
					<p>
						<a href="javascript:SelSikucyosonRequest('{$apm.baseurl}search/{$form_act}/jyoken/','0');">
							<img src="/images/search/common/btn_next_easy04.gif" alt="次へ進む" width="264" height="59" />
						</a>
					</p>
				</div>
			</div>
			<!-- /searchBtnBlock02_easy -->

		<div id="hiddenval">
			{$hiddenTag}
			<input type="hidden" name="SelTownKbn">
		</div>
	</form>

{* 県のタブ切り替え *}
{literal}
<script type="text/javascript">
<!--
$(function() {
	$("#tab li").click(function() {
		var num = $("#tab li").index(this);
		$(".content_wrap").addClass('disnon');
		$(".content_wrap").eq(num).removeClass('disnon');
		$("#tab li").removeClass('select');
		$(this).addClass('select')
	});
});
-->
</script>
{/literal}